{include file="layout_basic.tpl"}

<form action="" method="post">
	<fieldset>
		<legend>{$ui.newuser}</legend>
			<dl>
				<dt> <label> {$ui.username}</label></dt>
				<dd> <input name="usuario" type="text" value="" /> </dd>
			</dl>
			
			<dl>
				<dt> <label> {$ui.password}</label></dt>
				<dd> <input type="password" name="senha" value=""> </dd>
			</dl>
			<input type="submit" value="{$ui.saveaction}"/> 
	</fieldset>
</form>

<fieldset>
	<legend>{$ui.listusers}</legend>
	<div class="widget_tableDiv">
			<table id="datatable">
				<thead>
					<tr>
						<td>{$ui.username}</td>
						<td>{$ui.actions}</td>
					</tr>
				</thead>
				
				<tbody class="scrollingContent">
					{foreach from=$datatable item=row}
					<tr>
						<td>{$row.usuario}</td>
						<td><a href="?del={$row.usuario}" style="display:inline"><img alt="delete" border="0" src="img/delete.jpg"/></a></td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
		
		<script type="text/javascript">
			initTableWidget('datatable',570,90,Array('S',false));
		</script>
</fieldset>
{include file="layout_basic_tail.tpl"}